
<script setup>
import {useAttrs} from 'vue'
const attrs=useAttrs()
// const props=defineProps({
//   name:String,
//   age:Number,
//   stes:Array
// })
// let {name,age,stes}=props
// console.log(props,name,age,stes,65200);
//defineEmits中不声明"click",'shgf' attrs中就会继承父组件的click和shgf事件
// const emit =defineEmits(["click",'shgf'])
console.log(attrs,741010);
const jshf=()=>{
  alert(123)
}
</script>
<template>
    <div class="iurf" style="border:1px solid yellow" @click="$emit('shgf')" @jshf="jshf">
        我是child4-{{ $attrs }}
    </div>
</template>
<style scoped>
.iurf{
  color:yellow
}
</style>


